package priv.dajie.tzzq.service;

import priv.dajie.tzzq.model.BuyCompareItem;
import priv.dajie.tzzq.model.BuyGoods;
import priv.dajie.tzzq.model.GoodsState;
import priv.dajie.tzzq.model.TradeStateItems;
import priv.dajie.tzzq.spider.model.Platform;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName TradeService
 * @Description
 * @Author dajie
 * @Date 2019/10/24 1:12 上午
 * @Version V1.0
 **/
public interface TradeService {

    List<BuyCompareItem> listBuyItem();
    boolean addTrade(BuyGoods buyGoods);
    TradeStateItems listTradeStateItem(GoodsState goodsState);
    TradeStateItems listTradeStateItem(GoodsState goodsState, Platform platform);
    boolean updateState(String id, GoodsState goodsState);
    boolean updateState(String id, GoodsState goodsState, BigDecimal price);
    boolean updateState(String id, GoodsState goodsState, BigDecimal price, String sellId);

}
